package com.web.java0408demo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lenovo
 * @Description
 * @Date2025/4/8 下午3:28
 */
@RestController
public class HelloController {

    @Value("${server.port}")
    private Integer port;

    @RequestMapping("/hello")
    public String hello(){
        return "Hello Nginx---------->"+port;
    }
//@RequestMapping("/hello")
//public String hello(){
//    return "Hello Docker!!";
//}
}
